//
//  BaseNetstatusViewController.m
//  TestCach
//
//  Created by 钮勇威 on 16/2/25.
//  Copyright © 2016年 阿毛. All rights reserved.
//

#import "BaseNetstatusViewController.h"

@interface BaseNetstatusViewController ()
@property (nonatomic , assign) int intNetworkStatus;
@end

@implementation BaseNetstatusViewController

- (void)viewDidLoad {
    [super viewDidLoad];
  //  _intNetworkStatus = -1;
    [NotificationCenter addObserver:self selector:@selector(refreshView:) name:NETWORKUPDATE object:nil];
    
//    [NotificationCenter    addObserver:self
//                              selector:@selector(networkChanged:)
//                                  name:kRealReachabilityChangedNotification
//                                object:nil];
 
}



-(void)refreshView{
    //NSLog(@"dvd");
}

-(void)refreshView:(NSNotification *)notice{
//    if ([[USER_DEFAULT objectForKey:@"networkStatus"] integerValue] > 0) {
//        return;
//    }else{
        [self refreshView];
 //   }
}


//-(void)refreshView:(NSNotification *)notice{
//    
//    if (_networkStatus == nil) {
//        _networkStatus  = notice.object;
//        return;
//    }
//    
//    if ([_networkStatus integerValue] == 0 || [notice.object integerValue] > 0 ) {
//        [self refreshView];
//    }
//    
//    _networkStatus  = notice.object;
//}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

-(void)dealloc{ 
}

@end
